/*
 * @Description: 预加载
 * @param : 
 */
var _oldNumber=$('#oldNumber').val();
var _newNumber=$('#newNumber').val();
var _newModel=$('#newModel').val();
$(document).ready(function() {
//	resizeIframeHight();
});
$("#modify").click(function() {
	_oldNumber=$('#oldNumber').val();
	_newNumber=$('#newNumber').val();
	_newModel=$('#newModel').val();
	console.log(_oldNumber);
	console.log(_newNumber);
	console.log(_newModel);
	infoShow(_oldNumber,_newNumber,_newModel);
});
/*
 * @Description: 重置按钮点击事件
 * @param :
 */
$("#resetting").click(function() {
	$(".clean_C").val("");
});
/*
 * @Description: 显示信息
 * @param :fMacIds 设备ID
 */
function infoShow(){
	console.log(_oldNumber);
	console.log(_newNumber);
	showLoading();
	$.ajax({
		url:pathUrl("replace/replaceItemNumber.action"),
		type:'POST',
		dataType:'JSON',
		data:{'oldNumber':_oldNumber,'newNumber':_newNumber,'newModel':_newModel},
		success : function(data) {
			if (data.code == "0000") {								
				swal_Tips_Short(data.message);
			}else if (data.code == "9999") {
				console.log(11);
				swal_Tips(data.message);
			}
		},
		error : function(request) {
			swal_Tips_Error();
			console.log(12);
		}
	});
}